package org.example;

public class Student {
    private String sname;
    private int age;

    public Student() {}

    public Student(String sname, int age) {
        this.sname = sname;
        this.age = age;
    }

    public String getSname() { return sname; }
    public void setSname(String sname) { this.sname = sname; }

    public int getAge() { return age; }
    public void setAge(int age) { this.age = age; }

    @Override
    public String toString() {
        return "Student{sname='" + sname + "', age=" + age + "}";
    }
}